import { useState, useEffect } from "react";
import "./index.less";
import { message } from 'antd';
import { request } from "../../../../../../../common/request";
import { urls } from "../../../../../../../common/urls";

function QuitLogin() {
  const submitQuitLogin = () => {
    request({
      method: "post",
      data: {
        method: urls.submitQuitLogin,
      },
    }).then((res: any) => {
      message.success(res.msg);
    }).catch((err) => {
      message.error(err);
    });
  };

  return (
    <>
      <div className="quitLogin-page text-style">
        <div className="quitLogin-page-btn" onClick={ submitQuitLogin }>退出登录</div>
      </div>
    </>
  );
}

export default QuitLogin;
